﻿@using ZhongKeSite.Entity;
@model NewsDetail
<div class="banner banner-contact wow fadeInUp">
    <div class="container">
        <h1 class="title-page">推动人类生产技术颠覆性创新</h1>
    </div>
</div>
<div class="page page-innovate-detail">
    <section class="container">
        <div class="s1">
            <div class="social">
                分享
                <div class="social-share" data-disabled="google,twitter,facebook,qq,qzone,tencent,douban"></div>
            </div>
            <article class="maincontent">
                <div class="title-article">
                    <h3>@Model.News.Title</h3>
                    <div class="note">@Model.News.PublishDate.Value.ToString("yyyy-MM-dd")</div>
                </div>
                <div class="article">
                    @Html.Raw(Model.News.Content)
                    </div>
                <footer class="footnav">
                    @if (Model.PreNews != null)
                    {
                        <div class="prev"><a href="/detail?id=@Model.PreNews.ID">上一篇： @Model.PreNews.Title</a></div>
                    }
                    @if (Model.NextNews != null)
                    {
                        <div class="next"><a href="/detail?id=@Model.NextNews.ID">下一篇： @Model.NextNews.Title</a></div>
                    }
                </footer>
            </article>
        </div>
    </section>
</div>
@section scripts {
    <script src="~/portal/js/vendor/share/js/social-share.min.js"></script>
    <script>
        $(function () {
            var $config = {
                url: window.location.href, // 网址，默认使用 window.location.href
                source: '', // 来源（QQ空间会用到）, 默认读取head标签：<meta name="site" content="http://overtrue" />
                title: '@Model.News.Title', // 标题，默认读取 document.title 或者 <meta name="title" content="share.js" />
                description: '@Model.News.Remark', // 描述, 默认读取head标签：<meta name="description" content="PHP弱类型的实现原理分析" />
                image: '@Model.News.QrCodePath', // 图片, 默认取网页中第一个img标签
                sites: ['weibo', 'wechat'], // 启用的站点
                disabled: ['google', 'facebook', 'twitter', 'qzone', 'qq', 'douban'], // 禁用的站点
                wechatQrcodeTitle: "微信扫一扫：分享", // 微信二维码提示文字
                wechatQrcodeHelper: '<p>微信里点“发现”，扫一下</p><p>二维码便可将本文分享至朋友圈。</p>',
            };
            socialShare('.social-share', $config)
        });
    </script>
}